package person.twj.jwt.controller;

import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class AccessController {
    @RequestMapping("/test")
    public String test(HttpServletRequest request){
        System.out.println("访问资源"+request.getMethod()+"：/test");
        return "可以访问资源了";
    }
}
